home *** CD-ROM | disk | FTP | other *** search
RISC OS BBC BASIC V Source | 1994-07-22 | 2.1 KB | 106 lines |
- >ColTest
- " at line ";
- "Press
- for multisync or
- for standard"
- "resolution monitors."
- A=
- 77 : msync%=
- ok%=
- 83 : msync%=
- ok%=
- 109 : msync%=
- ok%=
- 115 : msync%=
- ok%=
- : ok%=
- msync%
- C%=0
-
- 0 :
-
- 1 :
-
- 2 :
- fourcoldt
-
- 3 :
- "
- 4 :
- sixteencoldt
-
- 5 :
-
-
- x%=0
-
- y%=0
- !!
- setcolour(x%,y%,0,0)
- "'
- 69,(x%<<1)+224,(y%<<1)+96
-
- $
- A=
- C%=0
-
- 0 :
-
- 1 :
-
- 2 :
- fourcoldt
-
- 3 :
- .!
- 4 :
- sixteencoldt
-
- 5 :
- 0
- 1
- x%=0
-
- y%=0
- 4!
- setcolour(x%,y%,0,0)
- 5
- 69,(x%<<2),(y%<<2)
-
- 7
- A=
- Set up the desktop palette for the appropriate colours
- (4 & 16 colours only)
- fourcoldt
- 19,0,16,255,255,255
- 19,1,16,170,170,170
- 19,2,16, 85, 85, 85
- 19,3,16, 0, 0, 0
- sixteencoldt
- 19, 0,16,255,255,255
- 19, 1,16,221,221,221
- 19, 2,16,187,187,187
- 19, 3,16,153,153,153
- 19, 4,16,119,119,119
- 19, 5,16, 85, 85, 85
- 19, 6,16, 51, 51, 51
- 19, 7,16, 0, 0, 0
- 19, 8,16, 0, 68,153
- 19, 9,16,238,238, 0
- 19,10,16, 0,204, 0
- 19,11,16,221, 0, 0
- 19,12,16,238,238,187
- 19,13,16, 85,136, 0
- 19,14,16,255,187, 0
- 19,15,16, 0,187,255
- PROCsetcolour
- r%, g%, b% set the amounts of red green and blue for the desired
- colour, Colourtrans will be used to pick the closest colour
- and set it. effect is a standard GCOL effect field
- Use SWI number for speed :
- ColourTrans_SetGCOL = &40743
- setcolour(r%,g%,b%,effect%)
- colour%
- a%colour%=(b%<<24)+(g%<<16)+(r%<<8)
- &40743,colour%,,,0,effect%
-